package com.hzncc.flowable_diboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotNull;

/**
* 角色租户 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-08-08
* Copyright © MyCorp
*/

@TableName("iam_role_tenant")
@Getter @Setter @Accessors(chain = true)
public class RoleTenant extends BaseModel {
    private static final long serialVersionUID = 1741454687772858074L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 角色
     */
    @TableField()
    private String role;

    /**
     * 目标租户
     */
    @TableField()
    private String targetTenant;


}